//
//  FKMenuView.h
//  FKMeituan
//
//  Created by 云眼科技 on 16/7/14.
//  Copyright © 2016年 CloudEyes. All rights reserved.
//

#import <UIKit/UIKit.h>

@class FKMenuView;

NS_ASSUME_NONNULL_BEGIN

@interface FKMenuItem : UIButton
-(instancetype)initWithTitle:(NSString *)title NS_REQUIRES_SUPER;
-(instancetype)initWithFrame:(CGRect)frame title:(NSString *)title NS_REQUIRES_SUPER;
-(void)setTitleForOpen;
-(void)setTitleForClose;
@end

@protocol FKMenuViewDelegate <NSObject>
@optional
-(void)menuView:(FKMenuView *)menuView didSelectedItemAtIndex:(NSInteger)index;
@end

@interface FKMenuView : UIView

@property (nonatomic, weak) id<FKMenuViewDelegate> delegate;

-(instancetype)initWithFrame:(CGRect)frame itemsTitleArray:(NSArray <NSString *> *)titleArray;

@end

NS_ASSUME_NONNULL_END